package com.code8086.working;

public class DateTimeConvertor {
	
	public static double timeToDouble (String str)
	{
		
		if (str.equals(""))
		{
			return 0.00;
		}
		else
		{
			str = str.replaceAll("[*]", "");
			String[] two = str.split(":");
			int a = Integer.valueOf(two[0]);
			int b = Integer.valueOf(two[1]);
			double ans = (double)a + (double)b/60;
			return ans;
		}
	}
}
